package com.itypd.message;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.List;

/*
 * @Description:
 * @Athor: GongMingwei
 * @version: v1.0
 */
public interface IMessageReader {
    void init(MessageBuffer readMessageBuffer);

    void read(Socket socket, ByteBuffer byteBuffer) throws IOException;

    List<Message> getMessages();

}
